function spliceHolds(holds){
    let hds = _.clone(holds);
    for(let i = 0; i< hds.length; i++){
        let poker = holds[i];
        if(poker>26) return;
        let pv = poker % 9+1;
        if(pv>7){
            continue;
        }
        let index1 = holds.indexOf(poker+1);
        let index2 = holds.indexOf(poker+2);
        if(index1!=-1 && index2!=-1){
            hds.splice(index1,1);
            index2 = holds.indexOf(poker+2);
            hds.splice(index2,2);
            i-=2;
        }
    }
    let sortHolds = _.sortBy(hds);
    if(sortHolds.length==0){
        return -1;
    }
    console.log(sortHolds);
    let retPoker = -1;
    for(let i = 0; i< sortHolds.length; i++){
        let poker = holds[i];
        if(poker>26) return;
        let pv = poker % 9+1;
        if(pv>7){
            continue;
        }
        let index1 = holds.indexOf(poker+1);
        let index2 = holds.indexOf(poker+2);
        if(index1 ==-1){
            retPoker= poker+1;
        }
        if(index2 == -1){
            retPoker = poker+2;
        }
    }
    if(retPoker == -1){
        let poker = sortHolds[parseInt(sortHolds.length*Math.random())];
        let pv = poker % 9+1;
        if(pv>7){
            retPoker = poker -1;
        }else{
            retPoker = poker+1;
        }
    }
    return retPoker
}

function test(){
    // let holds = [2,3,4,5];
    // let hp = spliceHolds(holds)
    // console.log(hp);
    let obj = {a:1,b:2};
    let {a, b} = obj;
    a = 4;
    console.log(obj.a)
}

test();